import request from '@/utils/request'

// 根据学校ID查询班级列表
export function listClassById(query) {
  return request({
    url: '/school/class',
    method: 'get',
    params: query
  })
}

// 创建班级
export function addClasses(data) {
  return request({
    url: '/school/class-build',
    method: 'post',
    data: data
  })
}

// 删除班级
export function delClass(query) {
  return request({
    url: '/school/delete',
    method: 'delete',
    params: query
  })
}